package com.ruoyi.audit.controller;

import com.ruoyi.audit.entity.po.Expert;
import com.ruoyi.audit.service.ExpertService;
import com.ruoyi.audit.utils.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/expert")
public class ExpertController {
    @Resource
    ExpertService expertService;

    /**
     * 查询待审核的专家
     * @return
     */
    @RequestMapping("/findByExpertStatus")
    public Result findByExpertStatus(){
        return expertService.findByExpertStatus();
    }

    /**
     * 运营商为专家进行审核
     * @param Expert
     * @return
     */
    @RequestMapping("/checkByExpertId")
    public Result checkByExpertId(@RequestBody Expert Expert){
        return expertService.checkByExpertId(Expert);
    }

}
